﻿<?php require_once(dirname(__FILE__)."/../config/config.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改管理员信息</title>
</head>
<body>
<?php  
if($_SESSION['admin_name']=="")
{

	echo "<script>location.href='admin_login.php';</script>";
}
?>
<?php
  $admin_id=$_GET[admin_id];
  $page=$_REQUEST['page'];
  $sql = "select * from zy_admin where admin_id = '".$admin_id."'";
 // echo $sql;
  $result = mysql_query($sql);
  $zy_admin = mysql_fetch_array($result);
 // print_r($info);
?>
<form action="admin_action.php?action=update&admin_id=<?php echo $zy_admin['admin_id'];?>&page=<?php echo $page ?> " method="post">
		<table width="320" border="0" align="center">
			<tr>
			<td align="right"> 管理员账号:</td>
			<td><input type="text" name="admin_name" value="<?php echo $zy_admin['admin_name'];?>"/></td>
			</tr>
			<tr>
			<td align="right">管理员密码 : </td>
			<td><input type="text" name="admin_password" value="<?php echo $zy_admin['admin_password'];?>"/></td>
			</tr>
			<tr>
			<td align="right"> 备注: </td>
			<td><input type="text" name="remark" value="<?php echo $zy_admin['remark'] ;?>"/></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
						<input type="submit" name="submit"  value="确认"/>
				</td>
			</tr>
		</table>
		</form>
		</body>
		</html>
